/**
 * Created by xiewei on 2017/3/5.
 */

var htmlWebpackPlugin = require('html-webpack-plugin');

module.exports={
    entry:{
        main:'./src/script/main.js',
        a:'./src/script/a.js'
    },
    output:{
        path:'./dist',
        filename:'js/[name]-[hash].js',
        publicPath:'http://127.0.0.1/webpack-demo'
    },
    plugins:[
        new htmlWebpackPlugin({
            filename:'index.html',
            template:'index.html',
            //inject:'head'
            title:'webpack is good'
        })
    ]
};
